﻿using System;

namespace AppServer
{
    /// <summary>
    /// ReceivedArgs
    /// </summary>
    public class ReceivedArgs:EventArgs
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="session">IAppSession</param>
        /// <param name="bytes">Bytes</param>
        public ReceivedArgs(IAppSession session,byte[] bytes)
        {
            this.Session = session;
            this.Bytes = bytes;
        }

        /// <summary>
        /// Session
        /// </summary>
        public IAppSession Session
        {
            get;
            private set;
        }

        /// <summary>
        /// Bytes
        /// </summary>
        public byte[] Bytes
        {
            get;
            private set;
        }
    }
}
